<?php
//数据库
if(file_exists("data/conf/db.php")){
	$db=include "data/conf/db.php";
}else{
	$db=array();
}

//动态配置
if(file_exists("data/conf/config.php")){
	$runtime_config=include "data/conf/config.php";
}else{
    $runtime_config=array();
}
//支付配置
if(file_exists("data/conf/zhifu.php")){
	$zhifu=include "data/conf/zhifu.php";
}else{
    $zhifu=array();
}
//登录配置
if(file_exists("data/conf/login.php")){
	$login=include "data/conf/login.php";
}else{
    $login=array();
}
//短信配置
if(file_exists("data/conf/phone.php")){
	$phone=include "data/conf/phone.php";
}else{
    $phone=array();
}
$configs= array(
	'URL_MODEL'=>2,
	'URL_HTML_SUFFIX'=>'html',
	'SESSION_AUTO_START'=>true,
	'MODULE_ALLOW_LIST' => array('Home','newAdmin','newMobile','Busine','store'),
	'DEFAULT_MODULE' => 'newMobile',
    //'SHOW_PAGE_TRACE' => true,
    'APP_SUB_DOMAIN_DEPLOY'   =>    1,
    'APP_SUB_DOMAIN_RULES'    =>    array(
        'newadmin.58daiyan.com'  => 'NewAdmin',
        'm.58daiyan.com'  => 'newMobile',       
        'store.58daiyan.com'=>'Store',
        'www.58daiyan.com'=>'Home',        
        '58daiyan.com'=>'Home',
        'www.58wu.cn'=>'Home',       
        '58wu.cn'=>'Home',
        'm.58wu.cn'  => 'newMobile',
		'partner.58daiyan.com'  => 'Partner'
    ),
    'SESSION_AUTO_START'    =>  true,
    'DATA_CACHE_PREFIX' => 'Redis_',//Redis缓存前缀
	'DATA_CACHE_TYPE'=>'Redis',//默认动态缓存为Redis
	'REDIS_RW_SEPARATE' => true, //Redis读写分离 true 开启
	'REDIS_HOST'=>'127.0.0.1', //redis服务器ip，多台用逗号隔开；读写分离开启时，第一台负责写，其它[随机]负责读；
	'REDIS_PORT'=>'6379',//端口号
	'REDIS_TIMEOUT'=>'300',//超时时间
	'REDIS_PERSISTENT'=>false,//是否长连接 false=短连接
	'REDIS_AUTH'=>'',//AUTH认证密码
    'SHOW_ERROR_MSG' => true
	
);
return  array_merge($configs,$db,$runtime_config,$zhifu,$login,$phone);


